package com.hcy.usermodel.dto.request;

import com.hcy.rabbitbasicmodel.signl.Add;
import com.hcy.rabbitbasicmodel.signl.Delete;
import com.hcy.rabbitbasicmodel.signl.Update;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author huchenying
 * @Description
 * @Date 2022/4/22
 **/
@Data
public class MenuRequestDTO {

    /**
     * 菜单父级id
     */
    @NotNull(groups = {Add.class,Delete.class})
    private Integer pid;

    /**
     * 菜单id
     */
    @NotNull(groups = {Delete.class})
    private Integer id;
    private List<Integer> deleteIds;

    /**
     * 菜单名称
     */
    @NotNull(groups = {Add.class})
    private String name;

    /**
     * 菜单对应url
     */
    @NotNull(groups = Add.class)
    private String url;

    @NotNull(groups = Update.class)
    private List<Integer> menuIds;
    @NotNull(groups = Update.class)
    private String roleName;
    @NotNull(groups = Update.class)
    private Integer roleId;
    private String businessCode;
}
